package com.hntxk.cqzd.diacrisis.model.his;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hntxk.core.framework.entity.BaseEntity;
import com.hntxk.core.lang.annotation.Id;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class HisModel extends BaseEntity {

    //患者本地id
    @Id
    private Long hisId;

    //患者本地id
    private String patientId;

    //患者姓名
    private String patientName;

    //卡类型编码
    private String cardTypeId;

    //卡类型名称
    private String cardType;

    //卡号
    private String cardCode;

    //挂号日期
    @DateTimeFormat( pattern = "yyyy-MM-dd" )
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date registerDate;

    //挂号时间
    private Date registerTime;

    //身份证号
    private String patientCardId;

    //生日
    private Date patientBirthday;

    //门诊号
    private String outpatientNo;

    //年龄
    private int patientAge;

    private String isValid;


    /**查询条件*/
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date startDate;
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date endDate;

    /**被操作的标识*/
    private Character isBeoperated;
    /**当天日期 用来查询*/
    @DateTimeFormat( pattern = "yyyy-MM-dd" )
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date nowDate;
}
